package com.pn.service.Impl;

import com.pn.entity.User;
import com.pn.mapper.UserMapper;
import com.pn.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author : LH
 * @create 2023/12/10 21:35
 */
@Service
public class UserServiceImpl implements UserService {
	// 注入UserMapper
	@Resource
	private UserMapper userMapper;
	
	// 根据账号查询用户的业务方法
	@Override
	public User findUserByCode(String userCode) {
		return userMapper.findUserByCode(userCode);
	}
}
